<!-- top头部 -->
<div class="dwz-box"></div>

<div class="head-container">
<div class="wrap">

<!-- logo -->
<a class="logo" href="<?php echo $cfg_basehost?>/" rel="nofollow"></a>
<!-- logo End -->

<!-- 网站导航 -->
<div id="navbar">
<ul class="navbar1">
<li><a href="<?php echo $cfg_basehost?>/">首页</a></li>
<li class="sw-product"><a href="<?php echo $cfg_basehost?>/courses/">全部课程</a>
<ol class="sw-product-info">
<?php
$sql = "select * from #@__arctype where reid = '17' order by id desc limit 30";
$dsql->Execute('me',$sql);
while($arr = $dsql->GetArray('me'))
{
echo '<li><a href="'.GetTypeDeurl($arr['id']).'" target="_blank">'.$arr['typename'].'</a></li>';
}
?>
</ol>
</li>
<li><a href="<?php echo $cfg_basehost?>/tequan/"><?php $row = $dsql->GetOne("SELECT * FROM `biz_arctype` WHERE id=2"); echo "".$row['typename'].""; ?></a></li>
<li><a href="<?php echo $cfg_basehost?>/article/"><?php $row = $dsql->GetOne("SELECT * FROM `biz_arctype` WHERE id=1"); echo "".$row['typename'].""; ?></a></li>
<li style="position:relative;"><a class="btn1" style="cursor:pointer;">APP学课</a><em class="hot"></em></li>
</ul>
</div>
<!-- 网站导航 End -->
<style type="text/css">
#navbar{float:left;margin-left:40px;}
#navbar li{float:left;}
#navbar li a{display:block;padding:0 20px;color:#333;font-size:16px;height:70px;line-height:70px;letter-spacing:1px;}
#navbar li a:hover{color:#ff700a;transition:0.3s;}
.sw-product{position:relative;}
.sw-product ol{position:absolute;background:#fff;z-index:10;margin:0 auto;padding:15px 18px 10px 18px;width:335px;height:auto;overflow:hidden;box-sizing:content-box;border-bottom-right-radius:5px;border-bottom-left-radius:5px;box-shadow:1px -1px 20px 5px rgba(0,0,0,0.1);display:none;}
.sw-product ol li{margin:0 10px 15px 0;}
.sw-product ol li:nth-child(2n){margin:0 0 15px 0;}
#navbar li.sw-product ol li a{background:#ddd;width:122px;text-align:center;border-radius:19px;font-size:15px;height:38px;line-height:38px;}
#navbar li.sw-product ol li a:hover{color:#fff;background:#ff700a;}
#navbar ul.navbar1 li.sw-product a:hover + ol.sw-product-info, li.sw-product ol.sw-product-info:hover{display:block;}
#navbar .hot{width:23px;height:11px;background:url(<?php echo $cfg_basehost?>/images/gnew1.gif) no-repeat;position:absolute;display:inline-block;top:13px;right:5px;}
</style>

<!-- 课程搜索 -->
<div class="ysearch-box">
<form method="post" name="f1" action="<?php echo $cfg_basehost?>/apps/search.php" onsubmit="return checkSearchForm()">
<input type="hidden" name="kwtype" value="0" />
<input type="hidden" id="driverId" name="channeltype" value="17" />  
<input type="text" class="yfixtext" id="keyword" name="keyword" placeholder="搜索你感兴趣的课程" autocomplete="off">
<input type="submit" class="fixsbmt" value="">
</form>
</div>
<script type="text/javascript">
  function checkSearchForm(){
  if(document.getElementById('keyword').value){
    return true;
    }else{
   alert("请输入课程关键词！");
    return false;
    }
 }
</script>
<!-- 课程搜索 End -->

<!-- 登录/注册 -->
<div class="topRight"><div class="sign-box" id="_userlogin"><a class="a register" href="<?php echo $cfg_basehost?>/user/" rel="nofollow">登录/注册</a></div></div>
<script language="javascript" type="text/javascript">CheckLogintop();</script>
<!-- 登录/注册 End -->

</div>
</div>
<!-- top头部 End -->
<div class="top-yxw-pc-gl"></div>